package com.luguangtao.web;

import com.alibaba.fastjson.JSON;
import com.luguangtao.config.ConfigEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @类名: com.luguangtao.web
 * @作者: lgt
 * @创建时间: 2019-12-06 14:11
 * @描述:
 **/
@RestController
@RefreshScope
public class TestConfig2Controller {

    @Autowired
    private ConfigEntity configEntity;

    @RequestMapping("test001")
    public String test01(){
        return JSON.toJSONString(configEntity);
    }
}
